package com.joolun.mall.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author quyang
 * @description
 * @date 2022/1/3
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class JDCancelOrderResultDTO {

    private Integer code;

    private String message;

    public static JDCancelOrderResultDTO success(){
        return new JDCancelOrderResultDTO(1,"cancel success");
    }

    public static JDCancelOrderResultDTO fail(){
        return new JDCancelOrderResultDTO(-1,"cancel fail");
    }
}
